<template>
	<view>
		<web-view :src="course.linkUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				options: {},
				course: {},
			};
		},

		onLoad(options) {
			console.log(options)
			this.options = options
			this._getCourse()
		},

		methods: {
			_getCourse() {
				let that = this
				that.$api.getCourse(that.options.courseId).then(res => {
					that.course = res.data
				})
			}
		}

	}
</script>

<style lang="scss">

</style>
